package com.heima.pri02;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class ZiFuHuanChongLiu01 {
    public static void main(String[] args) throws IOException {
        //字符缓冲流特有特点
        //创建对象
        BufferedWriter fi=new BufferedWriter(new FileWriter("day11\\a.txt"));
        //写入数据
        fi.write("猫吃老鼠");
        //跨平台的回车换行
        fi.newLine();
        fi.write("a,b,c,d");
        fi.newLine();
        fi.flush();
        fi.close();
        //1.字符缓冲输出流BufferedWrite:newLine 跨平台的换行符
        //2.字符缓冲输入流BufferedRead:readLine 读一整行

    }
}
